import flyshoes.Main;
import flyshoes.utils.JwtUtil;
import flyshoes.utils.Md5Util;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest(classes = Main.class)
public class praseToken {
    @Test
    void parseToken() {
        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEzLCJleHAiOjE3Mjk4NTg3MDN9.NC9XMH5fTk88fy76uhyLwak1ecbJgSVoDPMYQZ74zjQ";
        System.out.println("现在的token是："+token);
        Integer userId = JwtUtil.parseToken(token);
        System.out.println("userID是："+userId);
    }
    @Test
    void Md5Passwprd(){
        System.out.println("加密后的密码是："+ Md5Util.getMD5("2"));

    }
}
